home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / wdiff004.lha / wdiff-0.04 / Makefile.in < prev    next >
Makefile  |  1992-12-23  |  4KB  |  153 lines

  1. # Makefile for word diff.
  2. # Copyright (C) 1992 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. SHELL = /bin/sh
  19.  
  20. #### Start of system configuration section. ####
  21.  
  22. srcdir = @srcdir@
  23. VPATH = @srcdir@
  24. U = @U@
  25.  
  26. CC = @CC@
  27. DIFF = @DIFF@
  28. PAGER = @PAGER@
  29. INSTALL = @INSTALL@
  30. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  31. INSTALL_DATA = @INSTALL_DATA@
  32. MAKEINFO = makeinfo
  33. TEXI2DVI = texi2dvi
  34.  
  35. DEFS = @DEFS@
  36. PROGDEFS = -DDIFF_PROGRAM="\"$(DIFF)\"" -DPAGER_PROGRAM="\"$(PAGER)\""
  37. CFLAGS = -g
  38. LDFLAGS = -g
  39. LIBS = @LIBS@
  40. LIBOBJS = @LIBOBJS@
  41.  
  42. prefix = /usr/local
  43. exec_prefix = $(prefix)
  44. bindir = $(exec_prefix)/bin
  45. infodir = $(prefix)/info
  46. mandir = $(prefix)/man/man1
  47. manext = .1
  48.  
  49. # You might add cbars to PROGS if you feel like it.
  50. PROGS = wdiff
  51.  
  52. #### End of system configuration section. ####
  53.  
  54. .c.o:
  55.     $(CC) -c -I$(srcdir) $(CFLAGS) $(DEFS) $<
  56.  
  57. HEADERS = getopt.h pathmax.h
  58. SOURCES = wdiff.c readpipe.c writepipe.c \
  59. error.c getopt.c getopt1.c alloca.c strstr.c
  60. OBJECTS = $Uwdiff.o readpipe.o writepipe.o \
  61. error.o getopt.o getopt1.o $(ALLOCA) $(LIBOBJS)
  62. DISTFILES = README NEWS TODO THANKS COPYING INSTALL ChangeLog \
  63. configure.in aclocal.m4 Makefile.in ansi2knr.c \
  64. $(HEADERS) $(SOURCES) cbars.sh c-boxes.el check_it \
  65. wdiff.texi gpl.texinfo texinfo.tex wdiff.1 \
  66. configure wdiff.info
  67.  
  68. all: $(PROGS)
  69.  
  70. wdiff: $(OBJECTS)
  71.     $(CC) $(LDFLAGS) -o wdiff $(OBJECTS) $(LIBS)
  72.  
  73. $Uwdiff.o: $Uwdiff.c
  74.     $(CC) -c -I$(srcdir) $(CFLAGS) $(DEFS) $(PROGDEFS) $<
  75.     
  76. $Uwdiff.o: getopt.h pathmax.h
  77. getopt.o getopt1.o: getopt.h
  78.  
  79. ansi2knr: ansi2knr.c
  80.     $(CC) $(CFLAGS) $(DEFS) -o ansi2knr $(srcdir)/ansi2knr.c
  81. _wdiff.c: wdiff.c ansi2knr
  82.     ./ansi2knr $(srcdir)/wdiff.c > _wdiff.c
  83.  
  84. cbars: cbars.sh
  85.     sed -e 's|<bindir>|$(bindir)|' cbars.sh > cbars
  86.  
  87. info: wdiff.info
  88.  
  89. wdiff.info: wdiff.texi
  90.     $(MAKEINFO) -o wdiff.info $(srcdir)/wdiff.texi
  91.  
  92. dvi: wdiff.dvi
  93.  
  94. wdiff.dvi: wdiff.texi
  95.     $(TEXI2DVI) $(srcdir)/wdiff.texi
  96.  
  97. check: wdiff
  98.     $(srcdir)/check_it
  99.  
  100. install: wdiff wdiff.info
  101.     for file in $(PROGS); do \
  102.       $(INSTALL_PROGRAM) $$file $(bindir)/$$file; \
  103.     done
  104.     $(INSTALL_DATA) $(srcdir)/wdiff.info $(infodir)/wdiff.info
  105.     -$(INSTALL_DATA) $(srcdir)/wdiff.1 $(mandir)/wdiff$(manext)
  106.  
  107. uninstall:
  108.     for file in $(PROGS); do \
  109.       rm -f $(bindir)/$$file; \
  110.     done
  111.     rm -f $(infodir)/wdiff.info $(mandir)/wdiff$(manext)
  112.  
  113. tags: TAGS
  114.  
  115. TAGS: $(HEADERS) $(SOURCES)
  116.     etags $(HEADERS) $(SOURCES)
  117.  
  118. texclean:
  119.     rm -f *.aux *.cp *.dvi *.fn *.ky *.log *.pg *.toc *.tp *.vr
  120.  
  121. mostlyclean: texclean
  122.     rm -f *.o *.elc core test.out *~
  123.  
  124. clean: mostlyclean
  125.     rm -f $(PROGS) _*.c
  126.  
  127. distclean: clean
  128.     rm -f Makefile config.status ansi2knr TAGS
  129.  
  130. realclean: distclean
  131.     rm -f wdiff.info
  132.  
  133. dist: $(DISTFILES)
  134.     echo `pwd` | sed 's|.*/||' > .fname
  135.     rm -rf `cat .fname`
  136.     mkdir `cat .fname`
  137.     ln $(DISTFILES) `cat .fname`
  138.     chmod -R a+r `cat .fname`
  139.     tar chZf `cat .fname`.tar.Z `cat .fname`
  140.     rm -rf `cat .fname` .fname
  141.  
  142. Makefile: Makefile.in config.status
  143.     ./config.status
  144.  
  145. config.status: configure
  146.     $(srcdir)/configure --no-create
  147.  
  148. configure: configure.in aclocal.m4
  149.     cd $(srcdir); autoconf
  150.  
  151. # Prevent GNU make v3 from overflowing arg limit on SysV.
  152. .NOEXPORT:
  153.